import request from '@/utils/request'

// 查询游记分类列表
export function listTravel(query) {
  return request({
    url: '/baseplatform/travel/list',
    method: 'get',
    params: query
  })
}

// 查询游记分类详细
export function getTravel(typeId) {
  return request({
    url: '/baseplatform/travel/' + typeId,
    method: 'get'
  })
}

// 新增游记分类
export function addTravel(data) {
  return request({
    url: '/baseplatform/travel',
    method: 'post',
    data: data
  })
}

// 修改游记分类
export function updateTravel(data) {
  return request({
    url: '/baseplatform/travel',
    method: 'put',
    data: data
  })
}

// 删除游记分类
export function delTravel(typeId) {
  return request({
    url: '/baseplatform/travel/' + typeId,
    method: 'delete'
  })
}
